var baseURL = "http://192.168.4.18"
function http({
    url
}){
    return new Promise((resolve,reject)=>{
        wx.request({
            url: baseURL+url,
            data: {},
            method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
            // header: {}, // 设置请求的 header
            success: function(res){
                resolve(res)
            },
            fail: function() {
                reject(res)
            }
        })
    })
}
function getCityHttp(){
    return http({
        url:":8000/city"
    })
}
module.exports = {
    getCityHttp,
}